﻿#region zh-CHS 2006 - 2007 DemoSoft 团队 | en 2006 - 2007 DemoSoft Team

//     NOTES
// ---------------
//
// This file is a part of the G.O.S.E(Game Online Server Engine) for .NET.
//
//                 2006-2007 DemoSoft Team
//
//
// First Version : by H.Q.Cai - mailto:caihuanqing@hotmail.com

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published
 *   by the Free Software Foundation; either version 2.1 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/


#region zh-CHS 包含名字空间 | en Include namespace
using System;
using Demo_G.O.S.E.ServerEngine.Skill;
#endregion

namespace Demo_G.O.S.E.ServerEngine.Creature
{
    #region zh-CHS 共有的事件数据类 | en Public EventArgs Class
    /// <summary>
    /// BaseMobile的事件数据类
    /// </summary>
    public class BaseMobileEventArgs : EventArgs
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseWorld"></param>
        /// <param name="strText"></param>
        /// <param name="state"></param>
        public BaseMobileEventArgs( BaseCreature baseMobile )
        {
            m_BaseMobile = baseMobile;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// BaseWorld的数据
        /// </summary>
        private BaseCreature m_BaseMobile = null;
        #endregion
        /// <summary>
        /// BaseWorld实例
        /// </summary>
        public BaseCreature BaseMobile
        {
            get { return m_BaseMobile; }
        }
        #endregion
    }
    #endregion

    #region zh-CHS 委托 | en Delegate
    /// <summary>
    /// 世界服务的保存委托
    /// </summary>
    /// <param name="newNetState"></param>
    public delegate void SaveMobileEventHandler( BaseMobileEventArgs eventArgs );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <returns></returns>
    public delegate TimeSpan RegenRateHandler( BaseCreature from );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="target"></param>
    /// <returns></returns>
    public delegate bool AllowBeneficialHandler( BaseCreature from, BaseCreature target );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="target"></param>
    /// <returns></returns>
    public delegate bool AllowHarmfulHandler( BaseCreature from, BaseCreature target );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="skill"></param>
    /// <param name="target"></param>
    /// <param name="minSkill"></param>
    /// <param name="maxSkill"></param>
    /// <returns></returns>
    public delegate bool SkillCheckTargetHandler( BaseCreature from, SkillName skill, object target, double minSkill, double maxSkill );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="skill"></param>
    /// <param name="minSkill"></param>
    /// <param name="maxSkill"></param>
    /// <returns></returns>
    public delegate bool SkillCheckLocationHandler( BaseCreature from, SkillName skill, double minSkill, double maxSkill );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="skill"></param>
    /// <param name="target"></param>
    /// <param name="chance"></param>
    /// <returns></returns>
    public delegate bool SkillCheckDirectTargetHandler( BaseCreature from, SkillName skill, object target, double chance );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="skill"></param>
    /// <param name="chance"></param>
    /// <returns></returns>
    public delegate bool SkillCheckDirectLocationHandler( BaseCreature from, SkillName skill, double chance );
    #endregion
}
#endregion

